package com.project.modules.redEnvelope.model;

import com.baomidou.mybatisplus.annotation.TableName;
import com.project.common.api.BaseModel;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.math.BigDecimal;
import java.util.Date;

/**
 * Model
 *
 * @author Qing2514
 */
@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
@TableName("tbl_red_envelope")
@ApiModel(value = "对象", description = "TblRedEnvelope")
public class TblRedEnvelope extends BaseModel {

    @ApiModelProperty("红包总金额")
    private BigDecimal totalAmount;

    @ApiModelProperty("红包总个数")
    private Integer redCount;

    @ApiModelProperty("活动详情")
    private String content;

    @ApiModelProperty("报名开始时间")
    private Date signStartTime;

    @ApiModelProperty("报名截止时间")
    private Date signEndTime;

    @ApiModelProperty("抢红包开始时间")
    private Date startTime;

    @ApiModelProperty("抢红包截止时间")
    private Date endTime;

    @ApiModelProperty("活动人数限制")
    private Integer headCountLimit;

    @ApiModelProperty("活动名称")
    private String activityName;

    @ApiModelProperty("红包拆分情况，金额用英文逗号分隔")
    private String splitEnvelopes;

    @ApiModelProperty("是否是组内红包：0->否；1->是")
    private Integer sameGroup;

    @ApiModelProperty("图片")
    private String picture;

    @ApiModelProperty("红包状态（进行中0、已满1、已结束2）")
    private Integer status;
}
